package org.niugang.constant;

/**
 * @author niugang
 */
public enum CodeConstant {
	/**
	 * 没有登录
	 */
	NO_LOGIN(-1, "NO_LOGIN"),
	/**
	 * 成功
	 */
	SUCCESS(0,"SUCCESS"),

	/**
	 * 检查
	 */
	CHECK_FAIL(0,"CHECK_FAIL"),
	/**
	 * 没有权限
	 */
	NO_PERMISSION(2,"NO_PERMISSION"),
	/**
	 * 位置异常
	 */
	UNKNOWN_EXCEPTION(-99,"UNKNOWN_EXCEPTION");

	private final int value;

	private final String reasonPhrase;

	CodeConstant(int value, String reasonPhrase) {
			this.value = value;
			this.reasonPhrase = reasonPhrase;
		}

	public int getValue() {
		return value;
	}

	public String getReasonPhrase() {
		return reasonPhrase;
	}
	

}
